import os
import sys
import yaml


class Config:
    def __init__(self):
        self.config = self.__load_config(os.path.join(os.path.dirname(__file__), '..', 'config.yaml'))

        self.OPEN_AI = self.config["openai"]

    # Load content from a yaml file and return as variables
    def __load_config(self, file_path):
        with open(file_path, 'r') as file:
            config = yaml.safe_load(file)
        return config
